<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/7/15
  Time: 10:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%--<meta charset="UTF-8">--%>
    <%--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">--%>
    <%--<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />--%>
    <%--<!-- 全屏 -->--%>
    <%--<meta name="apple-mobile-web-app-capable" content="yes" />--%>
    <%--<!-- 上方栏显示 -->--%>
    <%--<meta name="apple-mobile-web-app-status-bar-style" content="black" />--%>
    <%--<!-- 不自动识别号码 -->--%>
    <%--<meta name="format-detection" content="telephone=no">--%>
    <%--<link href="${ctx}/assets/public_skin/css/reset.css" rel="stylesheet">--%>
    <%--<link href="${ctx}/assets/public_skin/css/shop_style.css" rel="stylesheet">--%>
    <%--<script src="${ctx}/assets/public_skin/js/jquery-1.11.1.min.js" type="text/javascript"></script>--%>
    <%--<script src="${ctx}/assets/public_skin/js/shop.common.js" type="text/javascript"></script>--%>
    <title>选择收货地址</title>

    <script>
        function checkVal(object) {
            window.location.href="${ctx}/shopping/savingShippingAddress?pid=${productId}&aid="+$(object).val();
        }
    </script>
</head>
<body>
<%--<header>--%>
    <%--<h1>选择收货地址</h1>--%>
    <%--<a href="javascript:;"></a>--%>
<%--</header>--%>
<div id="check_box">
    <article class="viewports">
        <ul class="imglist01 c3">
            <c:forEach items="${addressList}" var="addr">
            <li class="odr_b mb10">
                <div class="layout-box ptb20">
                    <div class="A-checkbox mr20"><input name="checkbox" class="subBox" type="radio" value="${addr.addressId}" onclick="checkVal(this)"/><label></label></div>
                    <div class="box-col">
                        <div>收货人：${addr.consigneeName}<span class="r">${addr.consigneePhone}</span></div>
                        <div class="hgt2 mt10 c6">收货地址：${addr.provinceName}${addr.cityName}${addr.districtName}${addr.streetName}${addr.address} </div>
                    </div>
                    <a href="${ctx}/shopping/editShippingAddress?aid=${addr.addressId}&pid=${productId}">
                    <div class="pl20 mt10">
                        <i class="ico-30 ico_edit"></i>
                    </div>
                    </a>
                </div>
            </li>
            </c:forEach>
        </ul>
    </article>
    <div class="buy_height"></div>
    <div class="bottom_buy layout-box b-ffaa3b tac">
        <a class="box-col cf" href="${ctx}/shopping/insertShippingAddress?pid=${productId}">新建收货地址</a>
    </div>
    <!--end 底下购物按钮-->
</div>
</body>
</html>
